package com.bjl.dao.imp;

import com.bjl.dao.DealDao;
import com.bjl.entity.Deal;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;
import orm.base.Ex.BaseDaoEx;

import java.util.List;
import java.util.Map;

/**
 * Created by ashin on 2017/11/22.
 */
@Repository
@Scope("prototype")
public class DealDaoImp extends BaseDaoEx implements DealDao {
    @Override
    protected void init() {
        super.init(this);
    }

    @Override
    public String getSingleUserTotal(Map map) throws Exception {
        return this.get("getSingleUserTotal",map);
    }

    @Override
    public List<Map> getUserTotal(Map map) throws Exception {
        return this.query("getUserTotal",map);

    }

    @Override
    public List<Map> queryUserCountByPerHour(Map map) throws Exception {
        return this.query("queryUserCountByPerHour",map);
    }

    @Override
    public List<Map> queryAllIntegralRoom(Map map) throws Exception {
        return this.query("queryAllIntegralRoom",map);
    }

    @Override
    public List<Map> queryUserIntegralRoom(Map map) throws Exception {
        return this.query("queryUserIntegralRoom",map);
    }

    @Override
    public Map querySingleIssueAccount(Map map) throws Exception {
        return this.get("querySingleIssueAccount",map);

    }

    @Override
    public Deal checkIsWin(Map map) throws Exception {
        return this.get("checkIsWin",map);
    }

    @Override
    public List<Map> queryAllDataInfo(Map map) throws Exception {
        return this.query("queryAllDataInfo",map);
    }

    @Override
    public List<Map> queryRoomsDataInfo(Map map) throws Exception {
        return this.query("queryRoomsDataInfo",map);
    }

    @Override
    public List<Map> queryUserDataInfo(Map map) throws Exception {
        return this.query("queryUserDataInfo",map);
    }
}
